//
//  EFGoodsDetailViewCellHeader.m
//  EnjogFood
//
//  Created by guocheng on 2017/5/21.
//  Copyright © 2017年 wf. All rights reserved.
//

#import "EFGoodsDetailViewCellHeader.h"
#import "EFGoodsDetailViewItemHeader.h"
#import "ICWholeIntroduceView.h"

@interface EFGoodsDetailViewCellHeader()

@property(strong,nonatomic)ICWholeIntroduceView* wholeView;


@end

@implementation EFGoodsDetailViewCellHeader

-(void)setObject:(EFGoodsDetailViewItemHeader *)item{
    [self addSubview:self.wholeView];
    [self.wholeView updateUI:item.productImg];
}

-(ICWholeIntroduceView *)wholeView{
    if(_wholeView == NULL){
        _wholeView = [[ICWholeIntroduceView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenWidth)];
    }
    return _wholeView;
}

@end
